<?php 


//define field dropdowns and lookups for listpage only
if(($PAGETYPE == 'LIST') OR ($PAGETYPE == 'FORM') ){
	$array_main_table_list = get_array_query("SELECT tablesource_id AS keyvalue, table_name AS showvalue FROM tablesources WHERE project_id = " . GetPagePersistent('flt_project_id') );
	$array_project_id_list = get_array_query("SELECT project_id AS keyvalue, project_name AS showvalue FROM projects");
}






//column settings for crudset_id
$fieldspec['crudset_id'] ['key'] = 1;
$fieldspec['crudset_id'] ['size'] = 20;
$fieldspec['crudset_id'] ['rows'] = 1;

//column settings for cs_name
$fieldspec['cs_name'] ['show'] = 'E';
$fieldspec['cs_name'] ['select'] = 'T';
$fieldspec['cs_name'] ['size'] = 20;
$fieldspec['cs_name'] ['rows'] = 1;

//column settings for multiact
$fieldspec['multiact'] ['show'] = 'E';
$fieldspec['multiact'] ['select'] = 'C';
$fieldspec['multiact'] ['size'] = 20;
$fieldspec['multiact'] ['rows'] = 1;

//column settings for paging
$fieldspec['paging'] ['show'] = 'E';
$fieldspec['paging'] ['select'] = 'C';
$fieldspec['paging'] ['size'] = 20;
$fieldspec['paging'] ['rows'] = 1;

//column settings for sorting
$fieldspec['sorting'] ['show'] = 'E';
$fieldspec['sorting'] ['select'] = 'C';
$fieldspec['sorting'] ['size'] = 20;
$fieldspec['sorting'] ['rows'] = 1;

//column settings for filter
$fieldspec['filter'] ['show'] = 'E';
$fieldspec['filter'] ['select'] = 'C';
$fieldspec['filter'] ['size'] = 20;
$fieldspec['filter'] ['rows'] = 1;

//column settings for main_table
$fieldspec['main_table'] ['show'] = 'E';
$fieldspec['main_table'] ['select'] = 'D';
//GetPagePersistent('project_id')
//$array_main_table_list = get_array_query("SELECT tablesource_id AS keyvalue, table_name AS showvalue FROM tablesources WHERE project_id = " . GetPagePersistent('flt_project_id') );
$fieldspec['main_table'] ['list'] = $array_main_table_list;
$fieldspec['main_table'] ['headname'] = 'TableSource';
$fieldspec['main_table'] ['size'] = 20;
$fieldspec['main_table'] ['rows'] = 1;

//column settings for project_id
$fieldspec['project_id'] ['show'] = 'L';
$fieldspec['project_id'] ['select'] = 'D';
//$array_project_id_list = get_array_query("SELECT project_id AS keyvalue, project_name AS showvalue FROM projects");
$fieldspec['project_id'] ['list'] = $array_project_id_list;
$fieldspec['project_id'] ['headname'] = 'Project';
$fieldspec['project_id'] ['size'] = 20;
$fieldspec['project_id'] ['rows'] = 1;
$fieldspec['project_id'] ['filter'] = 1;

//column settings for query
$fieldspec['query'] ['show'] = 'E';
$fieldspec['query'] ['select'] = 'A';
$fieldspec['query'] ['size'] = 20;
$fieldspec['query'] ['rows'] = 4;

//column settings for cs_type
$fieldspec['cs_type'] ['size'] = 20;
$fieldspec['cs_type'] ['rows'] = 1;

//column settings for list_base_name
//$fieldspec['list_base_name'] ['show'] = 'E';
//$fieldspec['list_base_name'] ['select'] = 'T';
$fieldspec['list_base_name'] ['size'] = 20;
$fieldspec['list_base_name'] ['rows'] = 1;

//column settings for proc_base_name
$fieldspec['proc_base_name'] ['show'] = 'E';
$fieldspec['proc_base_name'] ['select'] = 'T';
$fieldspec['proc_base_name'] ['size'] = 20;
$fieldspec['proc_base_name'] ['rows'] = 1;

//column settings for process_class
//$fieldspec['process_class'] ['show'] = 'E';
//$fieldspec['process_class'] ['select'] = 'T';
$fieldspec['process_class'] ['size'] = 20;
$fieldspec['process_class'] ['rows'] = 1;

//column settings for class_base_name
$fieldspec['class_base_name'] ['show'] = 'E';
$fieldspec['class_base_name'] ['select'] = 'D';
$baseclasslist[1]['showvalue'] = 'BasicTable';
$baseclasslist[1]['keyvalue'] = 'BasicTable';
$baseclasslist[2]['showvalue'] = 'CFtable';
$baseclasslist[2]['keyvalue'] = 'CFtable';
$baseclasslist[3]['showvalue'] = 'CF_EDpage_table';
$baseclasslist[3]['keyvalue'] = 'CF_EDpage_table';
$baseclasslist[4]['showvalue'] = 'CF_InlineEDTable';
$baseclasslist[4]['keyvalue'] = 'CF_InlineEDTable';
$baseclasslist[5]['showvalue'] = 'CF_AJTable';
$baseclasslist[5]['keyvalue'] = 'CF_AJTable';
$baseclasslist[6]['showvalue'] = 'CDivMFormList';
$baseclasslist[6]['keyvalue'] = 'CDivMFormList';

$fieldspec['class_base_name'] ['list'] = $baseclasslist;
$fieldspec['class_base_name'] ['size'] = 20;
$fieldspec['class_base_name'] ['rows'] = 1;

//column settings for html_table_name
$fieldspec['html_table_name'] ['show'] = 'E';
$fieldspec['html_table_name'] ['select'] = 'T';
$fieldspec['html_table_name'] ['size'] = 20;
$fieldspec['html_table_name'] ['rows'] = 1;

//column settings for class_name
//$fieldspec['class_name'] ['show'] = 'E';
//$fieldspec['class_name'] ['select'] = 'T';
$fieldspec['class_name'] ['size'] = 20;
$fieldspec['class_name'] ['rows'] = 1;
$fieldspec['class_name'] ['add'] = 1;

//column settings for list_table_instance
//$fieldspec['list_table_instance'] ['show'] = 'E';
//$fieldspec['list_table_instance'] ['select'] = 'T';
$fieldspec['list_table_instance'] ['size'] = 20;
$fieldspec['list_table_instance'] ['rows'] = 1;

//column settings for proc_class_instance
//$fieldspec['proc_class_instance'] ['show'] = 'E';
//$fieldspec['proc_class_instance'] ['select'] = 'T';
$fieldspec['proc_class_instance'] ['size'] = 20;
$fieldspec['proc_class_instance'] ['rows'] = 1;

//column settings for edit_base_class
$fieldspec['edit_base_class'] ['show'] = 'E';
$fieldspec['edit_base_class'] ['select'] = 'T';
$fieldspec['edit_base_class'] ['size'] = 20;
$fieldspec['edit_base_class'] ['rows'] = 1;

//column settings for edit_class_name
//$fieldspec['edit_class_name'] ['show'] = 'E';
//$fieldspec['edit_class_name'] ['select'] = 'T';
$fieldspec['edit_class_name'] ['size'] = 20;
$fieldspec['edit_class_name'] ['rows'] = 1;

//column settings for edit_instance
//$fieldspec['edit_instance'] ['show'] = 'E';
//$fieldspec['edit_instance'] ['select'] = 'T';
$fieldspec['edit_instance'] ['size'] = 20;
$fieldspec['edit_instance'] ['rows'] = 1;

//column settings for edit_page_name
//$fieldspec['edit_page_name'] ['show'] = 'E';
//$fieldspec['edit_page_name'] ['select'] = 'T';
$fieldspec['edit_page_name'] ['size'] = 20;
$fieldspec['edit_page_name'] ['rows'] = 1;


//column settings for css_file
$fieldspec['css_file'] ['show'] = 'E';
$fieldspec['css_file'] ['select'] = 'T';
$fieldspec['css_file'] ['size'] = 20;
$fieldspec['css_file'] ['rows'] = 1;

//column settings for showbuttons
$fieldspec['showbuttons'] ['show'] = 'E';
$fieldspec['showbuttons'] ['select'] = 'T';
$fieldspec['showbuttons'] ['size'] = 5;
$fieldspec['showbuttons'] ['rows'] = 1;

//column settings for subdirectory
$fieldspec['subdirectory'] ['show'] = 'E';
$fieldspec['subdirectory'] ['select'] = 'T';
$fieldspec['subdirectory'] ['size'] = 10;
$fieldspec['subdirectory'] ['rows'] = 1;

//column settings for needs_login
$fieldspec['needs_login'] ['show'] = 'E';
$fieldspec['needs_login'] ['select'] = 'C';
$fieldspec['needs_login'] ['size'] = 10;
$fieldspec['needs_login'] ['rows'] = 1;


?>